function prof = CAT_prof0(b,X,m,c)

prof = mean(m*(X*b-c).*(X*b > c));